<?php /* Smarty version 2.6.18, created on 2010-09-01 10:25:57
         compiled from alumni/profile/edit_contact.tpl */ ?>
<div id="solvay_content2010">
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "alumni/public/left_menu.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  <div id="content2010_right">
    <div class="ctn_contentright2010">
      <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "alumni/public/top_menu.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
      <div class="content_tab">
        <div class="title_contenttab">
          <table cellpadding="0" cellspacing="0" border="0" width="100%">
          <tr>
              <td align="left">contact info</td>
            </tr>
          </table>
         </div>
         <div class="ctn_texttab">
         	<form name="frmEditContact" id="frmEditContact" method="post" action="" onsubmit="return checkEditContact(this)" target="ifrm_upload">
          <input type="hidden" name="action" id="action" value="<?php echo $this->_tpl_vars['action']; ?>
">
            <table cellpadding="0" cellspacing="0" border="0" width="100%">
            	<tr>
                  <td colspan="2" class="text_13" style="color:#FF0000; text-align:center" id="id_alert_msg"></td>
                 </tr>
              <tr>
                <td width="190" class="text_13">Address</td>
                  <td class="text_13">
                  	<input type="text" name="address" id="address" class="input2010_300" value="<?php echo $this->_tpl_vars['arrInfoMemberContact']['address']; ?>
"  />
                  </td>
              </tr>
              <tr>
                <td colspan="2" height="10"></td>
              </tr>
              <tr>
                <td width="190" class="text_13_bg">City/ Province</td>
                  <td class="text_13_bg">
                    <select name="location_id" id="location_id" class="select2010_300">
                      <option value=""> -- City/Province -- </option> 
                      <?php $_from = $this->_tpl_vars['arrListLocation']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['nameLoaction'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['nameLoaction']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['keyLocation'] => $this->_tpl_vars['itemLocation']):
        $this->_foreach['nameLoaction']['iteration']++;
?>
                        <option<?php if ($this->_tpl_vars['arrInfoMemberContact']['location_id'] == $this->_tpl_vars['itemLocation']['id']): ?> selected="selected"<?php endif; ?> value="<?php echo $this->_tpl_vars['itemLocation']['id']; ?>
">&nbsp;&nbsp;&nbsp;<?php echo $this->_tpl_vars['itemLocation']['location_name']; ?>
</option>
                      <?php endforeach; endif; unset($_from); ?>
                    </select>
                  </td>
              </tr>
              <tr>
                <td colspan="2" height="10"></td>
              </tr>
              <tr>
                <td width="190" class="text_13">Private Email</td>
                <td class="text_13"><input type="text" name="private_email" id="private_email" class="input2010_300" value="<?php echo $this->_tpl_vars['arrInfoMemberContact']['private_email']; ?>
" /></td>
              </tr>
              <tr>
                <td colspan="2" height="10"></td>
              </tr>
              <tr>
                <td width="190" class="text_13_bg">Business Email</td>
                  <td class="text_13_bg"><input type="text" name="business_email" id="" class="input2010_300" value="<?php echo $this->_tpl_vars['arrInfoMemberContact']['business_email']; ?>
" /></td>
              </tr>
              <tr>
                <td colspan="2" height="10"></td>
              </tr>
              <tr>
                <td width="190" class="text_13">Private Tel</td>
                  <td class="text_13"><input type="text" name="private_tel" id="private_tel" class="input2010_300" value="<?php echo $this->_tpl_vars['arrInfoMemberContact']['private_tel']; ?>
"  /></td>
              </tr>
              <tr>
                <td colspan="2" height="10"></td>
              </tr>
              <tr>
                <td width="190" class="text_13_bg">Business Tel</td>
                  <td class="text_13_bg"><input type="text" name="business_tel" id="business_tel" class="input2010_300" value="<?php echo $this->_tpl_vars['arrInfoMemberContact']['business_tel']; ?>
" /></td>
              </tr>
              <tr>
                <td colspan="2" height="10"></td>
              </tr>
              <tr>
                <td width="190" class="text_13">&nbsp;</td>
                  <td class="text_13"><input type="submit" name="" class="btn_login2010" value="Save" /></td>
              </tr>
              
            </table>
          </form>   
          </div>
				</div>
    	</div>
   	</div>
</div>
<script type="text/javascript">
	function checkEditContact(p_objForm)
	{
		var frm = xoad.html.exportForm('frmEditContact');
		callAJAX('xoad_handler', 'changecontact', $H({form: frm}), checkEditContact_callBack);
		disableHandleForm(document.getElementById("frmEditContact"), true);
		return false;
	}
	var checkEditContact_callBack = function checkEditContact_callBack(results)
	{
		disableHandleForm(document.getElementById("frmEditContact"), false);
		if ( results == "SUCCESS" )
		{
			innerHTML("id_alert_msg","Action successfully!");
		}
		else
		{
			innerHTML("id_alert_msg","Action unsuccessfully!");
		}
	}
</script>